#include<stdio.h>
void main()
{
	int x=1,y=1,z=1,sum=0;

while(z<=10)

{	
	
	while(x<=z)
	{	
		y=x*y;
		x++;
	}	
sum+=y;
z++;
}
	printf("%d\n",sum);
}